<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>mmp项目管理</title>
<link href="__PUBLIC__/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/editor/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/editor/xheditor-1.1.9-zh-cn.min.js"></script>
</head>
	<script language="javascript">
		//$("#img1").hide();
		function changeImg()
		{
			//alert($("#imgfile").attr("value"));
			//s = $("#imgfile").attr("value");
			imgfile = document.getElementById("imgfile");
			s = imgfile.value;
			alert(s);
			//s = $("#imgfile").val();
			$("#img1").attr("src", s);
			alert($("#img1").attr("src"));
			//$("#img1").show();
		}
		
		</script>
<body>
<div class="login_main">
<div class="login_form">
<p>新用户注册</p>
<form id="regform" name="regform" enctype="multipart/form-data" method='post' action="__URL__/modifyitem">
    <p>
      <label>标题
		  <input type="text" name="item_title" class="textinput" value="{$item_title}" />
        <br />
      </label>
		<label>图片
			<input type="file" name="imgfile"  id="imgfile"  />
        <br />
      </label>
      <label>
        内容
 <textarea id="elm1" name="item_content"  class="xheditor-mfull {width:'300px',height:'200px',layerShadow:0}" rows="12" cols="80">
{$item_content}
	</textarea>
        <br />
      </label>
      
    </p>
    <p>
      <label>
        <input type="submit" name="login_submit" id="login_submit" value="提交" />
      </label>
        <input type="hidden" name="action" value="modify" />
        <input type="hidden" name="item_id" value="{$item_id}" />
    </p>
  </form>
</div>
<div class="clear"></div>
</div>
	<ul>
			<volist name="item_list" id="vo">
        	<li>{$vo.item_title}[<a href="{:U('Admin://Item/modifyitem',array(itemid=>$vo['item_id']))}">修改</a>][删除]</li>
        	<!--<li>{$vo.item_simg}</li>
        	<li>{$vo.item_content}</li>-->
			</volist>
        </ul>
	{$page}
</body>
</html>
